/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring.Beans;

import com.spring.DAO.AlumnoDAO;
import com.spring.Model.Alumno;
import javax.annotation.PostConstruct;
import org.springframework.context.annotation.Scope;

/**
 *
 * @author kerife
 */

@Scope("Session")
public class AlumnoBean {
    private Alumno alu;
    private AlumnoDAO da;
    private Integer cuenta;
    private String pass;
    
    @PostConstruct
    public void init(){  
    }
    
    public void setAlumno(){
        alu = da.findAlumno(cuenta);
    }
    
//-------------Gets y Sets ------------------
    public Integer getCuenta() {
        return cuenta;
    }

    public void setCuenta(Integer cuenta) {
        this.cuenta = cuenta;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
    
    public Alumno getAlu() {
        return alu;
    }
    
    public void setAlu(Alumno alu){
        this.alu = alu;
    }
    
}
